class USBBulkTransfer:
    def send_data(self, dev, endpoint: int, data: bytes):
        """批量传输"""
        dev.write(endpoint, data)

    def receive_data(self, dev, endpoint: int, size: int) -> bytes:
        """接收数据"""
        return dev.read(endpoint, size)